<div style="height: 1px;clear: both;"></div>

<form id="frmEditMyProduct" name="frmEditMyProduct">
    <table cellpadding="0" cellspacing="0" width="100%" class="table-form-post">
        <col width="20%">
        <col width="80%">
        <tr>
            <td colspan="2">
                <div class="info_header">
                    Thông tin khách hàng
                </div>
            </td>
        </tr>
        <tr>
            <td>
                Tên đầy đủ
            </td>
            <td>
                <input class="w200p" type="text" id="customer_full_name" name="customer_full_name" value="<?php echo $aryCustomerInfo['customer_full_name'];?>"><span id="customer_full_name_error_2" class="validate_error" style="display: none;"></span>
            </td>
        </tr>
        <tr>
            <td>
                Email
            </td>
            <td>
                <input class="w200p" type="text" id="customer_email" name="customer_email"  value="<?php echo $aryCustomerInfo['customer_email'];?>"><span id="customer_email_error_2" class="validate_error" style="display: none;"></span>
            </td>

        </tr>
        <tr>
            <td>
                Địa phương
            </td>
            <td>
                <select name="customer_zone_id" id="customer_zone_id" style="width: 218px;">
                    <option value="">Chọn tỉnh/TP</option>
                    <?php foreach ($aryLocation as $key => $value) {?>
                        <option value="<?php echo $value['location_id']; ?>" <?php echo ($value['location_id'] == $aryCustomerInfo['customer_zone_id']) ? 'selected' : '';?>><?php echo $value['location_name']; ?></option>
                    <?php } ?>
                </select>
                <span id="customer_zone_id_error_2" class="validate_error" style="display: none;"></span>
            </td>

        </tr>
        <tr>
            <td>
                Điện thoại di động
            </td>
            <td>
                <input class="w200p" type="text" id="customer_mobile_phone" name="customer_mobile_phone" value="<?php echo $aryCustomerInfo['customer_mobile_phone'];?>"><span id="customer_mobile_phone_error_2" class="validate_error" style="display: none;"></span>
            </td>
        </tr>
        <tr>
            <td>
                Điện thoại cố định
            </td>
            <td>
                <input class="w200p" type="text" id="customer_home_phone" name="customer_home_phone" value="<?php echo $aryCustomerInfo['customer_home_phone'];?>"><span id="customer_home_phone_error_2" class="validate_error" style="display: none;"></span>
            </td>
        </tr>
        <tr>
            <td>
                Nick yahoo
            </td>
            <td>
                <input class="w200p" type="text" id="customer_yahoo" name="customer_yahoo" value="<?php echo $aryCustomerInfo['customer_yahoo'];?>"><span id="customer_yahoo_error_2" class="validate_error" style="display: none;"></span>
            </td>

        </tr>
        <tr>
            <td>
                Nick skype
            </td>
            <td>
                <input class="w200p" type="text" id="customer_skype" name="customer_skype" value="<?php echo $aryCustomerInfo['customer_skype'];?>"><span id="customer_skype_error_2" class="validate_error" style="display: none;"></span>
            </td>
        </tr>
        <tr>
            <td>
                Địa chỉ
            </td>
            <td>
                <input class="w200p" type="text" id="customer_address" name="customer_address" value="<?php echo $aryCustomerInfo['customer_address'];?>"><span id="customer_address_error_2" class="validate_error" style="display: none;"></span>
            </td>
        </tr>
        <tr>
            <td>
                Ngày sinh
            </td>
            <td>
                <select id="day" name="day" style="width: 70px;">
                    <option value="">Ngày</option>
                    <?php for ($i=1;$i<=31;$i++) {?>
                        <option value="<?php echo $i?>" <?php echo ($i == $date) ? 'selected' : '';?>><?php echo $i?></option>
                    <?php }?>
                </select>
                <select id="month" name="month" style="width: 70px;">
                    <option value="">Tháng</option>
                    <?php for ($i=1;$i<=12;$i++) {?>
                        <option value="<?php echo $i?>" <?php echo ($i == $month) ? 'selected' : '';?>><?php echo $i?></option>
                    <?php }?>
                </select>
                <select id="year" name="year" style="width: 70px;">
                    <option value="">Năm</option>
                    <?php for ($i=2012;$i>=1920;$i--) {?>
                        <option value="<?php echo $i?>" <?php echo ($i == $year) ? 'selected' : '';?>><?php echo $i?></option>
                    <?php }?>
                </select>
                <span id="customer_birthday_error_2" class="validate_error" style="display: none;"></span>
            </td>
        </tr>
        <input type="hidden" name="customer_id" id="customer_id">

    </table>

    <div style="height: 1px;clear: both;"></div>
    <table cellpadding="0" cellspacing="0" class="table-form-post" width="100%" align="left">
        <col width="20%">
        <col width="80%">

        <tr>
            <td colspan="2">
                <div style="font-weight: bold;">
                    <div id="title_add_ctv_product" class="info_header">Thông tin sản phẩm</div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                Tên sản phẩm
            </td>
            <td>
                <span><input type="text" name="customer_product_product_name" id="customer_product_product_name" class="w300p" value="<?php echo $aryProductData['customer_product_product_name'];?>"></span><span id="customer_product_product_name_error" class="validate_error" style="display: none;"></span>
            </td>
        </tr>
        <tr>
            <td>
                Giá nhập&nbsp;(VNĐ)
            </td>
            <td>
                <span><input name="customer_product_in_price" id="customer_product_in_price" type="text" class="w100p" value="<?php echo $aryProductData['customer_product_in_price'];?>" onkeyup="AdminController.formatCurrency('customer_product_in_price_format', 'customer_product_in_price');" onchange="AdminController.formatCurrency('customer_product_in_price_format', 'customer_product_in_price');"></span><span id="customer_product_in_price_format"></span><span id="customer_product_in_price_error" class="validate_error" style="display: none;"></span>
            </td>
        </tr>
        <tr>
            <td>
                Giá bán&nbsp;(VNĐ)
            </td>
            <td>
                <span><input name="customer_product_out_price" id="customer_product_out_price" value="<?php echo $aryProductData['customer_product_out_price'];?>" type="text" class="w100p" onkeyup="AdminController.formatCurrency('customer_product_out_price_format', 'customer_product_out_price');" onchange="AdminController.formatCurrency('customer_product_out_price_format', 'customer_product_out_price');"></span><span id="customer_product_out_price_format"></span><span id="customer_product_out_price_error" class="validate_error" style="display: none;"></span>
            </td>
        </tr>
        <tr>
            <td>
                Số lượng
            </td>
            <td>
                <input type="text" class="w100p" name="customer_product_number" id="customer_product_number" value="<?php echo $aryProductData['customer_product_number'];?>"><span id="customer_product_number_error" class="validate_error" style="display: none;"></span>
            </td>
        </tr>
        <tr>
            <td>
                Đơn vị
            </td>
            <td>
                <input type="text" class="w100p" name="customer_product_unit" id="customer_product_unit" value="<?php echo $aryProductData['customer_product_unit'];?>"><span id="customer_product_unit_error" class="validate_error" style="display: none;"></span>
            </td>
        </tr>
        <tr>
            <td>
                Phí vận chuyển
            </td>
            <td>
                <input type="text" class="w100p" name="customer_product_transport" id="customer_product_transport" value="<?php echo $aryProductData['customer_product_transport'];?>" onkeyup="AdminController.formatCurrency('customer_product_transport_format', 'customer_product_transport');" onchange="AdminController.formatCurrency('customer_product_transport_format', 'customer_product_transport');"><span id="customer_product_transport_format"></span><span id="customer_product_transport_error" class="validate_error" style="display: none;"></span>
            </td>
        </tr>
        <tr>
            <td>
                Phí dịch vụ
            </td>
            <td>
                <input type="text" class="w100p" name="customer_product_services" id="customer_product_services" value="<?php echo $aryProductData['customer_product_services'];?>" onkeyup="AdminController.formatCurrency('customer_product_services_format', 'customer_product_services');" onchange="AdminController.formatCurrency('customer_product_services_format', 'customer_product_services');"><span id="customer_product_services_format"></span><span id="customer_product_services_error" class="validate_error" style="display: none;"></span>
            </td>
        </tr>
        <tr>
            <td>
                Chênh lệch
            </td>
            <td>
                <input type="text" class="w100p" name="customer_product_disparity" id="customer_product_disparity" value="<?php echo $aryProductData['customer_product_disparity'];?>" onkeyup="AdminController.formatCurrency('customer_product_disparity_format', 'customer_product_disparity');" onchange="AdminController.formatCurrency('customer_product_disparity_format', 'customer_product_disparity');"><span id="customer_product_disparity_format"></span><span id="customer_product_disparity_error" class="validate_error" style="display: none;"></span>
            </td>
        </tr>
        <tr>
            <td align="left" colspan="2">
                <input class="submit" type="button" value="Cập nhật sản phẩm" onclick="AdminController.editMyProduct(1, <?php echo $productId;?>, <?php echo $customerId;?>);">
                <input class="submit" type="button" value="Cập nhật khách hàng" onclick="AdminController.editMyProduct(2, <?php echo $productId;?>, <?php echo $customerId;?>);">
                <input class="submit" type="button" value="Cập nhật cả hai" onclick="AdminController.editMyProduct(3, <?php echo $productId;?>, <?php echo $customerId;?>);">
                <input type="text" id="" name="" class="submit w50p" value="Đóng" onclick="AdminController.closeFormViewMyProduct();">
            </td>
        </tr>
    </table>
</form>
